/*
 * @Author: chen haoxuan
 * @Date: 2021-06-13 23:20:36
 * @LastEditTime: 2021-06-13 23:27:55
 */
#include<iostream>
#include"Cylinder.cpp"
using namespace std;
int main()
{
  Cylinder cy1(3.5,6.4,5.2,10);
  cout<<"original cylinder:\nx="<<cy1.getX()<<",y="<<cy1.getY()<<".r="
      <<cy1.getRadius()<<",h"<<cy1.getHeight()<<"\narea="<<cy1.area()
      <<",volume="<<cy1.volume()<<endl;
  cy1.setHeight(15);
  cy1.setRadius(7.5);
  cy1.setPoint(5,5);
  cout<<"\nnew cylinder:\n"<<endl;
  Point &pRef = cy1;
  cout<<"\npRef as a point:"<<pRef;
  Circle &cRef= cy1;
  cout<<"\ncRef as Circle:"<<cRef;
  system("pause");
  return 0;
}